package com.poi.demopoi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 找不到mapper包：A component required a bean of type 'com. Mapper' that could not be found.：
 *      方法1：在每个mapper接口上添加上注解@Mapper
 *      方法2：在XXXApplication.java文件中添加注解@MapperScan("com.xd.pre.**.mapper")
 *      方法3：在MyBatisPlusConfig.java文件中添加注解@MapperScan("com.xd.pre.**.mapper")
 */
@SpringBootApplication
//@MapperScan("com.poi.demopoi.mapper")
//@MapperScan(basePackages = {"com.poi.demopoi.mapper"})
public class DemopoiApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemopoiApplication.class, args);
    }

}
